package cn.bandeqing.dispatch.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.sql.Date;

@Data
public class WorkTimeSaveOrUpdateReq implements Serializable {

    private Long wtId;

    /**
     * 工作人员ID
     */
    @NotNull
    private Long workerId;

    /**
     * 上午 7-12
     */
    private Boolean morning;

    /**
     * 12-18
     */
    private Boolean noon;

    /**
     * >18 || <7
     */
    private Boolean afternoon;

    /**
     * 日期
     */
    @NotNull
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date wtDate;

}
